{% extends 'base.html' %}

{% load pp_url %}
{% load topictags %}
{% load issuetags %}
{% load consensustags %}
{% load argumenttags %}
{% load solutiontags %}

{% block title %}
{% if request.object %}{{ request.object.text }}{% endif %} Issues
{% endblock title %}
{% block css %}
<link rel="stylesheet" type="text/css" href="/static/style.css" />
{% endblock %}

{% block content %}
	<div class="threecol">
		<div class="colmid">
			<div class="colleft">
				<div class="col2">
					<ul>Browse by:
						<li><a STYLE="text-decoration:none" href="/hot.html">hot</a></li> |
						<li><a STYLE="text-decoration:none" href="/cont.html">controversial</a></li> |
						<li><a STYLE="text-decoration:none" href="/new.html">new </a></li>
					</ul>
				</div>
				<div class="col1">
					<ul>Topic:
                        {% pp_get_topic_hierarchy topic=request.object %}
                             {% if pp_topic.hierarchy %}
                                {% for topic in pp_topic.hierarchy %}
                                    <li><a href="{% pp_url template="issues.html" object=topic %}">{{ topic.text }}</a></li> -> 
                                {% endfor %}
                              {% else %}
                                    <li> Browse List </li>
                              {% endif %}
                        {% endpp_get_topic_hierarchy %}
					</ul>
				</div>
				<div class="col3">
                    {% if request.user.name %}
					<ul>User Details:
						<li> {{request.user.name}}</li> |
						<li>Messages</li> |
						<li>Karma Points</li>
                    {% else %}
					<ul>Welcome:
						<li>register</li> |
						<li>login</li>
                    {% endif %}
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="stage">
		<div class="issuemask">
			<div class="rightcol">
				<ul>Events:
					<li>TBA</li>
				</ul>
				<ul>Recently Visited: 
					<li>Link 1</li>
					<li>Link 2</li>
				</ul>				
					
			</div> 
            
			 <div class="issuebound">

            {% pp_get_issue_list dimension="new" topic=request.object %}

                 {% for issue in pp_issue.issue_list %}

                    
				    <div class="issue">
					    <h1>
						    <div class="bullet">
							    <h1> {{ issue.interest }}
							    </h1>
							  <!--  <div class="bullet_daylight"></div>
							    <div class="bullet_verdict"></div> -->
						    </div>
						    <div class="issueback">
                <a STYLE="text-decoration:none"  href="{% pp_url template="issue_detail_2.html" object=issue %}">{{issue.name}}</a>
								    <div class="threecol">
									    <div class="colmid">
										    <div class="colleft">
											    <div class="col2">
												    X Arguments
											    </div>
											    <div class="col1">
												    {{ issue.solutions}} Solutions
											    </div>
											    <div class="col3">
												    {{issue.comments}} Comments
											    </div>
										    </div>
									    </div>
								    </div>
						
						    </div>
					    </h1>
				</div>
            {% endfor %}
                {% endpp_get_issue_list %}
			</div>
		</div>
	</div>
</body>
</html>
						
								<div class="threecol">
									<div class="colmid">


{% endblock content %}
